package com.xbongbong.admin.model;

import com.xbongbong.admin.domain.entity.MirrorChartCategoryEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;
import java.util.Map;

/**
 * @auther: xingxing.xiao
 * @date: 2020/3/6 006 15:28
 */
public interface MirrorChartCategoryModel extends IModel<MirrorChartCategoryEntity> {

    @Override
    List<MirrorChartCategoryEntity> findEntitys(Map<String, Object> param);

    /**
     * 通过主键删除
     * @author xingxing.xiao
     */
    Integer deleteByKey(Long key, Long mirrorId);

    /**
     * 通过主键获取数据
     * @author xingxing.xiao
     */
    MirrorChartCategoryEntity getByKey(Long key, Long mirrorId);

    /**
     * 批量插入数据
     * @param list 实体列表
     */
    List<MirrorChartCategoryEntity> insertBatch(List<MirrorChartCategoryEntity> list);

    /**
     * 根据镜像id和父id查询图表镜像分组
     * @param mirrorId
     * @param parent
     * @return
     */
    MirrorChartCategoryEntity getByMirrorId(Long mirrorId,Long parent);
}
